﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HotelProject
{
    public interface IDatabase
    {
        bool disconnect();

        bool saveChanges();

        Booking[] getBookingsBetweenDates(DateTime startDate, DateTime sendDate);

        void addBooking(Booking bookingToAdd);

        void removeBooking(Booking bookingToRemove);

        Booking[] getBookings();

        Booking[] getBookingsByUser(String userName);

        void addUser(registeredUser newUser);

        void removeUser(registeredUser userToRemove);

        registeredUser getUser(String userName);

        hotelRoom[] returnHotelRooms();

        hotelRoom[] getAvailableHotelRoomsByDate(DateTime startDate, DateTime endDate);

        hotelRoom[] getAvailableHotelRoomsByDate(DateTime startDate, DateTime endDate, int hotelId);

    }
}
